/*
 * @Descriptin:
 * @Version: 0.1
 * @Autor: boide gui
 * @Date: 2021-08-25 13:58:08
 * @LastEditors: guiyi@hongyi.tech
 * @LastEditTime: 2021-09-13 14:26:52
 */
import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import '@/assets/styles/index.scss' // global css

import './element-ui'
import './components'

import '@/assets/icons' // icon
import '@/permission' // permission control

// 权限指令器挂载
import permission from '@/directive/permission'
Vue.use(permission)

import {
  parseTime,
  resetForm,
  deleteObjectNuLL
} from '@/utils/tools'
import Cookies from 'js-cookie'
import modalForm from '@/utils/modal-form'

// 全局方法挂载
Vue.prototype.resetForm = resetForm
Vue.prototype.deleteObjectNuLL = deleteObjectNuLL
Vue.prototype.parseTime = parseTime
Vue.prototype.cookies = Cookies
Vue.prototype.modalForm = modalForm

import * as filters from '@/utils/tools' // global filters
// register global utility filters
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
